package zj.boxuegu.administrator.myapplication.Activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.VideoView;

import org.xutils.x;

import zj.boxuegu.administrator.myapplication.R;

public class CouserButtonActivity extends AppCompatActivity {
    ImageView imageView;
//Button but1,but2;
    TextView textView;
    VideoView videoView;
    String video;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_couser_button);
        textView= (TextView) findViewById(R.id.c_b_text1);
        imageView= (ImageView) findViewById(R.id.c_b_img);


       String des =getIntent().getStringExtra("des");
        String url=getIntent().getStringExtra("img");
        video=getIntent().getStringExtra("video");
        x.image().bind(imageView,url);
       textView.setText(des);


    }

    public void but1(View view){

        String des =getIntent().getStringExtra("des");
        textView.setText(des);

    }

    public void but2(View view){
        Intent intent =new Intent(CouserButtonActivity.this, VideoActivity.class);
        intent.putExtra("videour",video);
        startActivity(intent);



    }


}
